/**
 * 
 */

package radio.Pruebas;

import static org.junit.Assert.*;

import org.junit.Test;
import radio.Radio;


/**
 * @author Paulo Chang-11076,Andrea Mendoza-11331,Vinicio Gomez-11120,Felipe Zelada-08164
 * Pruebas unitarias para clase Radio
 * 9/7/2012
 */

public class RadioTest {
	/**instancia de radio para realizar pruebas*/
	public Radio radio = new Radio();

	/**
	 * Test method for {@link radio.Radio#Power()}.
	 */
	@Test
	public void testPower() {
		assertTrue( radio.Power());
		assertFalse(radio.Power());
	}

	/**
	 * Test method for {@link radio.Radio#ChangeSignal()}.
	 */
	@Test
	public void testChangeSignal() {
		radio.Power();
		
		assertTrue( radio.ChangeSignal());
		assertFalse(radio.ChangeSignal());
	}


	/**
	 * Test method for {@link radio.Radio#IsOn()}.
	 */
	@Test
	public void testIsOn() {
		assertFalse(radio.IsOn());
		radio.Power();
		assertTrue(radio.IsOn());
	}

	/**
	 * Test method for {@link radio.Radio#IsAm()}.
	 */
	@Test
	public void testIsAm() {
		radio.Power();
		assertFalse(radio.IsAm());
		radio.ChangeSignal();
		assertTrue(radio.IsAm());
	}

}
